package com.ctgu.chatapp.model.Retrofit

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class IMSServiceImpl {

    var service: IMSService

    init {
        val retrofit = Retrofit.Builder()
            .baseUrl("http://172.16.0.158:8001/")
            .addConverterFactory(GsonConverterFactory.create())
            .build()
        service = retrofit.create(IMSService::class.java)
    }

    companion object {
        val imsServiceImpl: IMSServiceImpl by lazy {
            IMSServiceImpl()
        }
    }

}